var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0}), (o.TableRules = void 0);
var n = t("ConfS"),
    r = t("AVM1"),
    a = t("Platforms"),
    i = t("TableRule"),
    s = (function () {
        function t() {}
        return (
            (t.init = function () {
                this.showings || (this.showings = new Array()),
                    this.推荐Icons.init(
                        "推荐Icon",
                        !1,
                        n.DatasManager.显示推荐Icon,
                        a.default.显示推荐Icon,
                        n.DatasManager.隐藏推荐Icon,
                        a.default.隐藏推荐Icon
                    ),
                    this.横幅s.init(
                        "横幅",
                        !1,
                        n.DatasManager.显示横幅,
                        a.default.显示横幅,
                        n.DatasManager.隐藏横幅,
                        a.default.隐藏横幅
                    ),
                    this.推荐组件横幅s.init(
                        "推荐组件横幅",
                        !1,
                        n.DatasManager.显示推荐组件横幅,
                        a.default.显示推荐组件横幅,
                        n.DatasManager.隐藏推荐组件横幅,
                        a.default.隐藏推荐组件横幅
                    ),
                    this.横幅原生模版广告s.init(
                        "横幅原生模版广告",
                        !1,
                        n.DatasManager.显示横幅原生模版广告,
                        a.default.显示横幅原生模版广告,
                        n.DatasManager.隐藏横幅原生模版广告,
                        a.default.隐藏横幅原生模版广告
                    ),
                    this.单格子原生模版s.init(
                        "单格子原生模版",
                        !0,
                        n.DatasManager.显示单格子原生模版,
                        a.default.显示单格子原生模版,
                        n.DatasManager.隐藏单格子原生模版,
                        a.default.隐藏单格子原生模版
                    ),
                    this.原生s.init(
                        "原生",
                        !1,
                        n.DatasManager.显示原生,
                        a.default.显示原生,
                        n.DatasManager.隐藏原生,
                        a.default.隐藏原生
                    ),
                    this.单个CPBs.init(
                        "单个CPB",
                        !0,
                        n.DatasManager.显示单个CPB,
                        a.default.显示单个CPB,
                        n.DatasManager.隐藏单个CPB,
                        a.default.隐藏单个CPB
                    ),
                    this.对联s.init(
                        "对联",
                        !1,
                        n.DatasManager.显示对联,
                        a.default.显示对联,
                        n.DatasManager.隐藏对联,
                        a.default.隐藏对联
                    ),
                    this.九宫格s.init(
                        "九宫格",
                        !1,
                        n.DatasManager.显示九宫格,
                        a.default.显示九宫格,
                        n.DatasManager.隐藏九宫格,
                        a.default.隐藏九宫格
                    ),
                    this.插屏s.init("插屏", !1, n.DatasManager.显示插屏, a.default.显示插屏),
                    this.推荐组件插屏s.init(
                        "推荐组件插屏",
                        !1,
                        n.DatasManager.显示推荐组件插屏,
                        a.default.显示推荐组件插屏
                    ),
                    this.瀑布s.init("瀑布", !1, n.DatasManager.显示瀑布, a.default.显示瀑布),
                    this.瀑布按钮s.init(
                        "瀑布按钮",
                        !1,
                        n.DatasManager.显示瀑布按钮,
                        a.default.显示瀑布按钮,
                        n.DatasManager.隐藏瀑布按钮,
                        a.default.隐藏瀑布按钮
                    ),
                    this.侧拉抽屉s.init(
                        "侧拉抽屉",
                        !1,
                        n.DatasManager.显示侧拉抽屉,
                        a.default.显示侧拉抽屉,
                        n.DatasManager.隐藏侧拉抽屉,
                        a.default.隐藏侧拉抽屉
                    ),
                    this.节日活动s.init(
                        "节日活动",
                        !1,
                        n.DatasManager.显示节日活动,
                        a.default.显示节日活动,
                        n.DatasManager.隐藏节日活动,
                        a.default.隐藏节日活动
                    ),
                    this.弹窗活动s.init(
                        "弹窗活动",
                        !1,
                        n.DatasManager.显示弹窗活动,
                        a.default.显示弹窗活动,
                        n.DatasManager.隐藏弹窗活动,
                        a.default.隐藏弹窗活动
                    ),
                    this.红包s.init(
                        "红包",
                        !1,
                        n.DatasManager.显示七日红包,
                        a.default.显示七日红包,
                        n.DatasManager.隐藏七日红包,
                        a.default.隐藏七日红包
                    ),
                    this.avm1Codes.init("AVM1码", !1, n.DatasManager.AVM1码, function (t) {
                        r.AVM1.run(n.DatasManager[t.codeName]);
                    });
            }),
            (t.pause = function () {
                this.推荐Icons.pause(),
                    this.横幅s.pause(),
                    this.推荐组件横幅s.pause(),
                    this.横幅原生模版广告s.pause(),
                    this.单格子原生模版s.pause(),
                    this.原生s.pause(),
                    this.对联s.pause(),
                    this.九宫格s.pause(),
                    this.瀑布按钮s.pause(),
                    this.侧拉抽屉s.pause();
            }),
            (t.resume = function () {
                this.推荐Icons.resume(),
                    this.横幅s.resume(),
                    this.推荐组件横幅s.resume(),
                    this.横幅原生模版广告s.resume(),
                    this.单格子原生模版s.resume(),
                    this.原生s.resume(),
                    this.对联s.resume(),
                    this.九宫格s.resume(),
                    this.瀑布按钮s.resume(),
                    this.侧拉抽屉s.resume();
            }),
            (t.show = function (t, e) {
                var o = this;
                a.default.delays &&
                    a.default.delays.delay({
                        time: this.delayShowTime,
                        action: function () {
                            o.showings &&
                                (a.default.platformCtrl.dd_showPage(e),
                                o.showings.indexOf(e) > -1
                                    ? console.error("重复 show：" + e)
                                    : (o.showings.push(e),
                                      o._run(t, "显示", e),
                                      o.showings.length > 10 &&
                                          console.error("showings=" + o.showings + " " + o.showings.length + ">10")));
                        }
                    });
            }),
            (t.hide = function (t, e) {
                if (this.showings) {
                    a.default.platformCtrl.dd_hidePage(e);
                    var o = this.showings.indexOf(e);
                    o > -1 ? this.showings.splice(o, 1) : console.error("hide 木有：" + e), this._run(t, "隐藏", e);
                }
            }),
            (t._run = function (t, e, o) {
                (a.default.userStorage.charges && a.default.userStorage.charges.length) ||
                    (this.推荐Icons.run(t, e, o),
                    this.横幅s.run(t, e, o),
                    this.推荐组件横幅s.run(t, e, o),
                    this.横幅原生模版广告s.run(t, e, o),
                    this.单格子原生模版s.run(t, e, o),
                    this.原生s.run(t, e, o),
                    this.单个CPBs.run(t, e, o),
                    this.对联s.run(t, e, o),
                    this.九宫格s.run(t, e, o),
                    this.插屏s.run(t, e, o),
                    this.推荐组件插屏s.run(t, e, o),
                    this.瀑布s.run(t, e, o),
                    this.瀑布按钮s.run(t, e, o),
                    this.侧拉抽屉s.run(t, e, o)),
                    this.节日活动s.run(t, e, o),
                    this.弹窗活动s.run(t, e, o),
                    this.红包s.run(t, e, o),
                    this.avm1Codes.run(t, e, o);
            }),
            (t.delayShowTime = 0.05),
            (t.delayCreateTime = 0.1),
            (t.推荐Icons = new i.TableRule()),
            (t.横幅s = new i.TableRule()),
            (t.推荐组件横幅s = new i.TableRule()),
            (t.横幅原生模版广告s = new i.TableRule()),
            (t.单格子原生模版s = new i.TableRule()),
            (t.原生s = new i.TableRule()),
            (t.单个CPBs = new i.TableRule()),
            (t.对联s = new i.TableRule()),
            (t.九宫格s = new i.TableRule()),
            (t.插屏s = new i.TableRule()),
            (t.推荐组件插屏s = new i.TableRule()),
            (t.瀑布s = new i.TableRule()),
            (t.瀑布按钮s = new i.TableRule()),
            (t.侧拉抽屉s = new i.TableRule()),
            (t.节日活动s = new i.TableRule()),
            (t.弹窗活动s = new i.TableRule()),
            (t.红包s = new i.TableRule()),
            (t.avm1Codes = new i.TableRule()),
            t
        );
    })();
o.TableRules = s;
